// pages/buyticket/buyticket.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    height:0,
title:[
  "你好我是好人你好我是好人你好我是好人你好我是好人",
  "你好我是好人",
  "你好我是好人"
],
    beijingheight: 0,
    luxian: [{ time: "08:00", address: "钱都不知道" }, { time: "08:00", address: "钱都不知道" }, { time: "08:00", address: "钱都不知道" }, { time: "08:00", address: "钱都不知道" }, { time: "08:00", address: "钱都不知道" }, { time: "08:00", address: "钱都不知道" }]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function () {
    var that = this;
    var height = that.data.height
wx.getSystemInfo({
  success: function(res) {
that.setData({
  height:res.windowHeight,
  beijingheight:res.screenHeight
})
  },
})
  
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {
  
  },
  buy:function(){
    wx.navigateTo({
      url: '../../pages/pay/pay',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {
  
  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {
  
  },
  ditu:function(){
    wx.navigateTo({
      url: '../../pages/map/map',
      success: function(res) {},
      fail: function(res) {},
      complete: function(res) {},
    })
  },
  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {
  
  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {
  
  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {
  
  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {
  
  }
})